/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SearchBill.java
 *
 * Created on 07 3, 11, 11:18:31 PM
 */
package vera;

/**
 *
 * @author kasia
 */
public class SearchReceipt extends ParentClass {

    /** Creates new form SearchBill */
    public SearchReceipt() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        m_labelSearchReceipt = new javax.swing.JLabel();
        m_labelReceiptNo = new javax.swing.JLabel();
        m_labelClient = new javax.swing.JLabel();
        m_labelDate = new javax.swing.JLabel();
        m_textFieldBillNo = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        m_tableResults = new javax.swing.JTable();
        m_textFieldClient = new javax.swing.JTextField();
        m_textFieldDate = new javax.swing.JTextField();
        m_buttonSearch = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(vera.VERAApp.class).getContext().getResourceMap(SearchReceipt.class);
        m_labelSearchReceipt.setFont(resourceMap.getFont("m_labelSearchReceipt.font")); // NOI18N
        m_labelSearchReceipt.setText(resourceMap.getString("m_labelSearchReceipt.text")); // NOI18N
        m_labelSearchReceipt.setName("m_labelSearchReceipt"); // NOI18N

        m_labelReceiptNo.setText(resourceMap.getString("m_labelReceiptNo.text")); // NOI18N
        m_labelReceiptNo.setName("m_labelReceiptNo"); // NOI18N

        m_labelClient.setText(resourceMap.getString("m_labelClient.text")); // NOI18N
        m_labelClient.setName("m_labelClient"); // NOI18N

        m_labelDate.setText(resourceMap.getString("m_labelDate.text")); // NOI18N
        m_labelDate.setName("m_labelDate"); // NOI18N

        m_textFieldBillNo.setText(resourceMap.getString("m_textFieldBillNo.text")); // NOI18N
        m_textFieldBillNo.setName("m_textFieldBillNo"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        m_tableResults.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Receipt No", "Client", "Date", "Amount"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Float.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        m_tableResults.setName("m_tableResults"); // NOI18N
        jScrollPane1.setViewportView(m_tableResults);

        m_textFieldClient.setText(resourceMap.getString("m_textFieldClient.text")); // NOI18N
        m_textFieldClient.setName("m_textFieldClient"); // NOI18N

        m_textFieldDate.setText(resourceMap.getString("m_textFieldDate.text")); // NOI18N
        m_textFieldDate.setName("m_textFieldDate"); // NOI18N

        m_buttonSearch.setText(resourceMap.getString("m_buttonSearch.text")); // NOI18N
        m_buttonSearch.setName("m_buttonSearch"); // NOI18N

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(32, 32, 32)
                        .addComponent(m_labelSearchReceipt))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(68, 68, 68)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(m_labelReceiptNo)
                                    .addComponent(m_labelClient)
                                    .addComponent(m_labelDate)
                                    .addComponent(jLabel1))
                                .addGap(38, 38, 38)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(m_textFieldDate)
                                    .addComponent(m_textFieldClient)
                                    .addComponent(m_textFieldBillNo, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)))
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 633, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(m_buttonSearch))))
                .addContainerGap(299, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(m_labelSearchReceipt)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel1)
                .addGap(16, 16, 16)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(m_labelReceiptNo)
                    .addComponent(m_textFieldBillNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(m_labelClient)
                    .addComponent(m_textFieldClient, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(m_labelDate)
                    .addComponent(m_textFieldDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(36, 36, 36)
                .addComponent(m_buttonSearch)
                .addGap(37, 37, 37)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(182, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new SearchReceipt().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JButton m_buttonSearch;
    private javax.swing.JLabel m_labelClient;
    private javax.swing.JLabel m_labelDate;
    private javax.swing.JLabel m_labelReceiptNo;
    private javax.swing.JLabel m_labelSearchReceipt;
    private javax.swing.JTable m_tableResults;
    private javax.swing.JTextField m_textFieldBillNo;
    private javax.swing.JTextField m_textFieldClient;
    private javax.swing.JTextField m_textFieldDate;
    // End of variables declaration//GEN-END:variables
}
